Skip to content

Conversation

@bluetech
Copy link
Member

@bluetech bluetech commented Aug 1, 2020

The first two commits are in service of the third, which type annotates the TestReport/CollectRepor (and related) longrepr fields. That would have caught #7559.

The type of longrepr is a union with 5 possibilities, which is not great IMO. Perhaps one day we can clean it up, at least this should make it a little easier.

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bluetech!

The type of longrepr is a union with 5 possibilities, which is not great IMO. Perhaps one day we can clean it up, at least this should make it a little easier.

Thanks! Indeed that's mighty confusing.

@bluetech bluetech merged commit 2bd0d97 into pytest-dev:master Aug 4, 2020
@bluetech bluetech deleted the typing-longrepr branch August 24, 2020 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants